package com.fary.web.context.request.async;

import com.fary.core.SpringException;
import com.fary.web.context.request.NativeWebRequest;

public class TimeoutDeferredResultProcessingInterceptor implements DeferredResultProcessingInterceptor {

	@Override
	public <T> boolean handleTimeout(NativeWebRequest request, DeferredResult<T> result) throws Exception {
		result.setErrorResult(new SpringException(result));
		return false;
	}

}